<template>
    <div class="turn-out">
        <van-nav-bar title="转出" left-arrow @click-left="goBack"/>
        <div class="content">
            <div class="out">
                <label for="balance">转出数量</label>
                <input type="number" placeholder="可转出余额为0" id="balance">
                <span>全部</span>
            </div>
        </div>
        <div class="confirm">
            <button type="submit" class="btn">确认</button>
        </div>
        <div class="explain">
            <div class="title">转出说明</div>
            <div class="con">
                <p>1、当日12:00前转出，当日不计算收益，预计当日23:59前可到账；</p>
                <p>2、当日12:00后转出，当日仍计算收益，预计T+1日23:59前可到账；</p>
                <p>3、转出暂不收取任何费用；</p>
            </div>
        </div>
    </div>
</template>
<script>
import Vue from "vue"
import axios from "axios"
import {
    NavBar,
} from "vant"
export default {
    components: {
        [NavBar.name]: NavBar,
    },
    data() {
        return {

        }
    },
    created(){
        console.log(this.$route)
    },
    watch:{
         $route(to, from) {
      if (this.$route.params.id) {
        console.log(this.$route)
      }
      }
    },
    methods: {
        //返回上一页
        goBack() {
            this.$router.go(-1);
        },
    }
}
</script>
<style lang="less" scoped>
.turn-out {
    .content {
        border-bottom: 1px solid #ebedf0;
        .out {
            display: flex;
            padding: 10px 15px;
            text-align: left;
            font-size: 14px;
            color: #323233;
            label {
                margin-right: 14px;
            }
            input {
                flex: 1;
                border: 0;
            }
            span {
                margin-left: 10px;
                color: #D1A658;
            }
        }
    }
    .confirm {
        padding: 35px 15px;
        font-size: 14px;
        color: #fff;
        .btn {
            padding: 10px;
            width: 100%;
            height: 1.07rem;
            border: 0;
            border-radius: 3px;
            background: #D1A658;
            outline: none;
        }
    }
    .explain {
        padding: 0 15px;
        text-align: left;
        font-size: 12px;
        color: #969799f5;
        .title {
            padding-bottom: 10px;
            font-size: 14px;
            color: #323233;
        }
        .con {
            p {
                padding-bottom: 10px;
            }
        }
    }
}
</style>
